//
//  YTBarcodePayViewController.h
//  UnionRich
//
//  Created by Liujinglin on 15/10/14.
//  Copyright © 2015年 cgc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "PayWithBarcode.h"
#import "UIViewControllerCallBackProtocol.h"
@interface YTBarcodePayViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate>
{
     NSTimer * timer;
}
@property (copy, nonatomic) NSString * amount;

@property (copy, nonatomic) NSString * payWay;

@property (strong,nonatomic)AVCaptureDevice * device;
@property (strong,nonatomic)AVCaptureDeviceInput * input;
@property (strong,nonatomic)AVCaptureMetadataOutput * output;
@property (strong,nonatomic)AVCaptureSession * session;
@property (strong,nonatomic)AVCaptureVideoPreviewLayer * preview;

@property (strong, nonatomic) id<PayWithBarcodeDelegate> payDelegate;
//+(instancetype)instance;
- (void)queryBarCodePayResult;
- (void)startPayWithBarCode;
-(void)postPayResultWithCallBack:(id<UIViewControllerCallBackProtocol>)callBack;
@end
